namespace EyeOpen
{
	using System;

	public static class EnsureObjectExtensions
	{
		public static void IsNotNull<T>(this IEnsure<T> obj)
			where T : class
		{
			var ensure = obj as Ensure<T>;

			if (ensure.Obj == null)
			{
				throw new ArgumentNullException(ensure.ParameterName);
			}
		}
	}
}